package sk.naive.talker.command;

import sk.naive.talker.props.*;
import sk.naive.talker.Consts;
import sk.naive.talker.util.Utils;

import java.rmi.RemoteException;

/**
 * GlobalMacro.
 *
 * @author <a href="mailto:virgo@naive.deepblue.sk">Richard "Virgo" Richter</a>
 * @version $Revision: 1.1 $ $Date: 2004/10/21 21:58:44 $
 */
public class GlobalMacro extends Macro {
	protected PropertyStore store() {
		return commandDispatcher.getTalker();
	}

	protected String getPropertyName() {
		return Consts.TPROP_MACROS;
	}

	protected void processParameters() throws RemoteException, CommandException, PropertyStoreException {
		Utils.checkPermission(user, Consts.PERM_SUPERUSER);
		super.processParameters();
	}
}